<template>
  <div>

    <el-form :model="fromData" ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <el-card class="box-card">
        <span>放款信息</span>
        <div class="text item">
          <el-form-item label="融资总金额(元)" prop="name">
            <el-input v-model="fromData.name" disabled></el-input>
          </el-form-item>
          <el-form-item label="打款凭证">
            <qiniu :qiniuImage="qiniuImage" :id="qiniuImage.id" :canDelete="false"></qiniu>
          </el-form-item>
          <el-form-item label="打款金额(元)" prop="name">
            <el-input v-model="fromData.name" disabled></el-input>
          </el-form-item>
          <el-form-item label="打款时间" prop="name">
            <el-input :value="getDate(fromData.name)" disabled></el-input>
          </el-form-item>
           <el-form-item label="打款单审核" prop="name">
            <el-radio v-model="radio" label="1">通过</el-radio>
            <el-radio v-model="radio" label="2">不通过</el-radio>
          </el-form-item>

        </div>
      </el-card>
    </el-form>
  </div>
</template>


<script>
  import qiniu from '@/views/qiniu/upload';
  import {timestampToTime} from '@/utils/index.js';
  export default {
    data() {
      return {
        fromData: [],
        radio: '1',
        qiniuImage: {
          id: "qiniuImage", //图片预览的id   
          image_uri: [
            'http://h.hiphotos.baidu.com/image/h%3D300/sign=6ee370b8861363270aedc433a18fa056/11385343fbf2b211ec2f692ac68065380cd78e55.jpg'
          ], //图片上传的列表  只含有url地址
        },
      }
    },
    components: {
      qiniu
    },
    methods:{
      getDate(time){
        return timestampToTime(time)
      }
    }
  }

</script>

